import { Controller } from 'egg';

export default class SafeCodeController extends Controller {

  public async generate() {
    const { ctx, service } = this;
    const safecode = await service.safecode.generate();
    ctx.body = ctx.helper.success({ safecode });
  }
}
